package com.jf.car.dao;

import com.jf.car.bean.Category;
import com.jf.car.util.PageInfo;

import java.util.List;

public interface CategoryDao {
    List<Category> getAll();
    List<Category> getPage(PageInfo pageInfo,Category category);
    int addSelect(Category category);
    int upateSelect(Category category);
    int delete(int id);
    int getCount(Category category);
    Category getById(int id);
    Category getByName(String name);
}
